<?php
namespace Api\Controller;
use Think\Controller;
class ClassController extends Controller {
    public function getClass(){

        // $m_id = $_GET['m_id'];

        $class = M('class');
        $data = $class -> order("class_id")->select();

        echo json_encode($data);
         echo "<br>";

    }

     public function Classdetail(){
      $class_id=$_GET['class_id'];
      $classmodel=M('class');
      $class=$classmodel->find($class_id); 
      $this->class=$class;
      exit(json_encode($class));
    } 



}
